import request from '@/utils/request'

// 查询车辆进出场记录列表
export function listVehicleInoutRecord(query) {
  return request({
    url: '/billsdecl/VehicleInoutRecord/list',
    method: 'get',
    params: query
  })
}

// 查询车辆进出场记录详细
export function getVehicleInoutRecord(id) {
  return request({
    url: '/billsdecl/VehicleInoutRecord/getInfo/' + id,
    method: 'get'
  })
}

// 新增车辆进出场记录
export function addVehicleInoutRecord(data) {
  return request({
    url: '/billsdecl/VehicleInoutRecord/add',
    method: 'post',
    data: data
  })
}

// 修改车辆进出场记录
export function updateVehicleInoutRecord(data) {
  return request({
    url: '/billsdecl/VehicleInoutRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除车辆进出场记录
export function delVehicleInoutRecord(id) {
  return request({
    url: '/billsdecl/VehicleInoutRecord/remove/' + id,
    method: 'get'
  })
}

// 导出车辆进出场记录
export function exportVehicleInoutRecord(query) {
  return request({
    url: '/billsdecl/VehicleInoutRecord/export',
    method: 'get',
    params: query
  })
}
